#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>
using namespace std;
#include"swapPairs.h"

int main()
{
	ListNode* ret = nullptr;
	for (int i = 4; i > 0; --i)
	{
		ret = new ListNode (i,ret);
	}
	Solution s;
	ret = s.swapPairs(ret);
	while (ret)
	{
		cout << ret->val << "     ";
		ret = ret->next;
	}

	return 0;
}